package com.example.test_20210601_Phone;

import com.example.test_20210601_Fruits.AbstractCat;
import com.example.test_20210601_Fruits.AbstractDog;
import com.example.test_20210601_Fruits.AnimalsFactory;

public class TestMain {
    public static void main(String[] args) {
        PhoneFactory xiaoMiFactory = new XiaoMiFactory();
        IPhoneService phone = xiaoMiFactory.createPhone();
        phone.getCpu();
        HuaWeiFactory huaWeiFactory = new HuaWeiFactory();
        System.out.println(huaWeiFactory.getMoney());
        IPhoneService phone1 = huaWeiFactory.createPhone();
        phone1.getCpu();
        phone1.getSize();
        System.out.println("--------------------");
        AbstractCat cat = new AbstractCat();
        cat.getName();
    }
}
